package com.core.framework.tools;

import com.google.gson.Gson;

public class Tools {
	public static Gson getGson()
	{
		return new Gson();
	}
    public static String toOntRowName(String voName) {
        StringBuffer sb = new StringBuffer(voName.length());
        boolean flag = false;
        for (int i = 0; i < voName.length(); i++) {
            char cur = voName.charAt(i);
            if (i == 0)
                cur = Character.toLowerCase(cur);
            if (cur == '_') {
                flag = true;
            } else {
                if (flag) {
                    sb.append(Character.toUpperCase(cur));
                    flag = false;
                } else {
                    sb.append(Character.toLowerCase(cur));
                }
            }
        }
        return sb.toString();
    }
    
}
